package com.henu.acmrating.dao;

import com.henu.acmrating.pojo.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author XiaolongLi
 * Description:
 * @date 2022-01-30 13:46
 */
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertOrUpdate(User record);

    int insertOrUpdateSelective(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    int updateBatch(List<User> list);

    int updateBatchSelective(List<User> list);

    int batchInsert(@Param("list") List<User> list);

    User selectOneByUserAccount(@Param("userAccount") String userAccount);

    User selectOneByAll(User user);

    User selectOneByUserEmail(@Param("userEmail") String userEmail);

    List<User> selectAll();
}